package com.nanyang.tms.api.dto.request.ticket;

import com.nanyang.common.core.domain.ApiRequest;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class TicketRecordQueryRequest extends ApiRequest {

    private static final long serialVersionUID = -2119359257256280910L;

    /**
     * 单号种类编码
     */
    @NotEmpty(message = "单号种类编码能为空")
    @Length(max = 32, message = "ticketTypeCode长度需小于32个字符")
    private String ticketTypeCode;
    /**
     * 使用状态（0未使用，已使用）
     */
    private Integer state;

    /*******分页*******/
    private int pageIndex = 1;
    private int pageSize = 10;
    @Override
    public void requestCheck() {

    }
}
